package xin.nick.demo;

import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;

/**
 * @Auther: Nick inickning@outlook.com
 * @Date: 2021/3/30 20:22
 * @Description:
 */
public class TestDeriver {
    public static void main(String[] args) throws InterruptedException {

        System.setProperty("webdriver.chrome.driver", "E:\\download\\chromedriver_win32 (1)\\chromedriver.exe");
        WebDriver driver = new ChromeDriver();

        driver.get("https://www..cn/");

        By userNameBy = By.id("username");
        driver.findElement(userNameBy).sendKeys("");
        Thread.sleep(2000);

        By passwordBy = By.id("password");
        driver.findElement(passwordBy).sendKeys("");
        Thread.sleep(2000);

        By btnBy = By.xpath("//button[@class='btn'][@type='submit']");
        driver.findElement(btnBy).click();

        Integer a = 1;
        a.compareTo(1);

        String b = "11";
        b.compareTo("21");

    }
}
